# $Id: PKGBUILD 88232 2013-04-14 19:43:58Z aginiewicz $
# Maintainer: Andrzej Giniewicz <gginiu@gmail.com>

pkgname=python2-traitsui
pkgver=4.3.0
pkgrel=1
pkgdesc="Traits-capable user interfaces"
arch=('any')
url="https://github.com/enthought/traitsui"
license=('BSD')
depends=('python2-pyface')
makedepends=('python2-distribute')
options=(!emptydirs)

source=("$pkgname-$pkgver.tar.gz::https://github.com/enthought/traitsui/archive/${pkgver}.tar.gz")
md5sums=('23b63f254d268666c816f1954c34b41a')

build() {
  cd "$srcdir"/traitsui-$pkgver

  python2 setup.py build
}

package() {
  cd "$srcdir"/traitsui-$pkgver

  python2 setup.py install --root="$pkgdir"/ --optimize=1

  install -D LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

